Skip to content

MNTOR-4267: Set e2e feature flags reliably #5923

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Vinnl
Copy link
Collaborator

@Vinnl Vinnl commented May 26, 2025

(Third attempt; see if CI has no cache errors from a fresh branch.)

The manual calls to beforeEach were not guaranteerd to run before other beforeEach calls - some of which did the initial page navigation. This meant that some tests would sometimes be interacting with pages that would have been loaded without setting the x-forced-feature-flags header, and thus not have the feature flags applied.

This method was sourced from
microsoft/playwright#9468 (comment)

The manual calls to `beforeEach` were not guaranteerd to run before
other `beforeEach` calls - some of which did the initial page
navigation. This meant that some tests would sometimes be
interacting with pages that would have been loaded without setting
the x-forced-feature-flags header, and thus not have the feature
flags applied.

This method was sourced from
microsoft/playwright#9468 (comment)
Copy link

@Vinnl Vinnl force-pushed the MNTOR-4267-e2e-fix branch from 68bfacf to 9ffd70e Compare May 26, 2025 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant